package com.qingcheng.service.order;

import java.util.List;
import java.util.Map;

public interface CartService {
    //购物车列表
    public List<Map<String,Object>> findCartList(String username);

    //购物车添加商品
    public void addItem(String username,String skuId,Integer num);

    //更新选中状态
    public boolean updateChecked(String username,String skuId,boolean checked);

    //删除选中的购物车
    public void deleteCheckedCart(String username);

    //计算购物车优惠金额
    public int preferential(String username);

    //刷新最新的购物车
    public List<Map<String,Object>> findNewOrderItemList(String username);
}
